<extend name="base" />
<block name="style2">
    <link rel="stylesheet" type="text/css" href="__PUBLIC__/Rbac/CSS/addAccess.css">
</block>
<block name="js2">
	<script type="text/javascript" src="__PUBLIC__/Rbac/JS/addAccess.js"></script>
</block>
<block name="content">
    <div class="content">
    <h2 class="sub-header">配置权限列表</h2>
		<form action="<{:U('Home/Rbac/addAccessHandle')}>" method="post">
		    <foreach name="node" item="app">
		        <ul class="modules">
		            <li><!--应用-->
		             	<input type="checkbox" name="access[]" level='1' value="<{$app.id}>_1" <if condition="$app.access eq 1">checked='checked'</if> ><{$app.remark}>
		            </li>
					<foreach name="app.child" item="v">
					    <ul class="controller">
						    <li>
						        <input type="checkbox" name="access[]" level='2' value="<{$v.id}>_2" <if condition="$v.access eq 1">checked='checked'</if> ><{$v.remark}>
						    </li>
						    <li>
							    <ul class="func"> 
								<foreach name="v.child" item="s" >
								    <li class="list">
								        <input type="checkbox" name="access[]" level='3' value="<{$s.id}>_3" <if condition="$s.access eq 1">checked='checked'</if> ><{$s.remark}>
								    </li>
								</foreach> 
								</ul>
						    </li>
						</ul>
					</foreach>
		        </ul>
		    </foreach>
		    <li style="height:10px"><input type="hidden" name="rid" value="<{$rid}>"></li>
		    <li style="margin-left:200px;height:40px"><input style="width:100px;height:30px" type="submit" name="sub" value="提交"></li>
		</form>
    </div>
</block>